/**
 * @author yuyangyang
 * @time 2015/3/11
 */
var mongoose = require('./mongoose');
var Schema = mongoose.Schema;


var MeetSchema = new Schema({
    sport: {
        type: Schema.Types.ObjectId,
        ref: 'SportModel'
    },
    title: String,
    content: String,
    creater: {
        type: Schema.Types.ObjectId,
        ref: 'UserModel'
    },
    place: String,
    startTime: Date,
    addTime: {
        type: Date,
        default: Date.now
    },
    updateTime: {
        type: Date,
        default: Date.now
    }
});

module.exports = mongoose.model('MeetModel', MeetSchema);